package com.lx.patterns.strategy;

/**
 * @ClassName Client
 * @Description: //测试类
 * @Author: 落雪
 * @CreateDate: 2025/2/10 20:56
 * @UpdateUser: 落雪
 * @UpdateDate: 2025/2/10 20:56
 * @UpdateRemark:
 * @Version: 1.0
 */
public class Client {

    public static void main(String[] args) {
        System.out.println("中秋节活动");
        SalesMan salesMan = new SalesMan();
        salesMan.setStrategy(new StrategyA());
        salesMan.salesManShow();

        System.out.println("国庆节活动");
        salesMan.setStrategy(new StrategyB());
        salesMan.salesManShow();

        System.out.println("圣诞节活动");
        salesMan.setStrategy(new StrategyC());
        salesMan.salesManShow();
    }
}
